home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / __MANDEL / MANDELBR / CPIXMAP.H < prev    next >
Text File  |  1992-03-24  |  1KB  |  47 lines

  1. /******************************************************************************
  2.  CPixMap.h
  3.  
  4.         Interface for the PixMap Class
  5.         
  6.  ******************************************************************************/
  7.  
  8. #pragma once
  9.  
  10. #include "CObject.h"                    /* Interface for its superclass        */
  11. #include "LongCoordinates.h"
  12.  
  13. class CPixMap : public CObject {        /* Class Declaration                */
  14.  
  15. public:
  16.  
  17.     GWorldPtr            itsGWorldP;
  18.     Rect                itsBoundsRect;
  19.     GDHandle            itsSavedDeviceH;
  20.     GrafPtr                itsSavedPortP;
  21.     short                itsXferMode;
  22.     CQDProcs *            itsCQDProcs;
  23.  
  24.     void                IPixMap(Rect, short);
  25.     virtual void        Dispose(void);
  26.     
  27.     virtual void        SetXferMode(short);
  28.     virtual short        GetXferMode(void);
  29.     
  30.     virtual void        GetBounds(Rect *theBounds);
  31.     virtual short        GetWidth(void);
  32.     virtual short        GetHeight(void);
  33.     virtual void        CopyFrom(LongRect *fromRect, LongRect *toRect, RgnHandle maskRgn);
  34.     
  35.     virtual void        BeginDrawing(void);
  36.     virtual void        EndDrawing(void);
  37.     
  38.     PixMapHandle        GetPixMapHandle(void);
  39.     Ptr                    GetBaseAddr(void);
  40.     short                GetRowBytes(void);
  41.     short                GetPixelSize(void);
  42.     PicHandle            GetPicHandle(void);
  43.     
  44.     void                SetPutPicProc(ProcPtr thePutPicProc);
  45.     void                UseStdProcs(void);
  46.     void                ResetStdProcs(void);
  47. };